package ua.com.hackaton.core;

import android.graphics.Paint;
import ua.com.hackaton.core.awt.Font;

import java.util.HashMap;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Eugene Borshch
 * Date: 6/26/11
 * Time: 11:42 AM
 * To change this template use File | Settings | File Templates.
 */
public class Settings
{
    private List<Paint> colors;
    private List<String> fonts;

    public static HashMap<Pack, Settings> packs = new HashMap<Pack, Settings>();

    static
    {
        packs.put(Pack.PACK1, new Settings(new Colors().getPaints(1), new Fonts().getPaints(1)));
        packs.put(Pack.PACK2, new Settings(new Colors().getPaints(2), new Fonts().getPaints(2)));
        packs.put(Pack.PACK3, new Settings(new Colors().getPaints(3), new Fonts().getPaints(3)));
    }

    public static Settings getSettings(Pack pack)
    {
        return packs.get(pack);
    }


    public Settings(List<Paint> colors, List<String> fonts)
    {
        this.colors = colors;
        this.fonts = fonts;
    }

    public List<Paint> getColors()
    {
        return colors;
    }

    public void setColors(List<Paint> colors)
    {
        this.colors = colors;
    }

    public List<String> getFonts()
    {
        return fonts;
    }

    public void setFonts(List<String> fonts)
    {
        this.fonts = fonts;
    }

    public static enum Pack
    {
        PACK1,
        PACK2,
        PACK3
    }
}
